
export namespace PromoTypes{
    export interface IPromoItem{
        id: number;
        title: string;
        scope: number;
        threshold: number; //门槛
        status: number;
        promoGears: Partial<IPromoGear>[]; //促销内容
        creator: string;
        createTime: string;
        updator: string;
        updateTime: string;
    }

    export interface IPromoGear{
       dataType: number;  
       type: number; //优惠类型
       value: number; //优惠值',
       objType: number;
       descr: string; //优惠券名称或指定商品名称',
       descrValue: string;
       creator: string;
       createTime: string;
       updator: string;
       updateTime: string;
    }

    export type PagePromoType = Partial<Pick<PromoTypes.IPromoItem,"scope"|"threshold"|"title"|"status"|"id">> & {type?:string}
}